﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 添加收藏
    /// yun.im.rongcloud.collect.add
    /// </summary>
    public class AddIMCollectRequest : ITopRequest<IntResultResponse>
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        public string MsgUId { get; set; }

        public string GetApiName()
        {
            return "yun.im.rongcloud.collect.add";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"msguid", MsgUId}
            };

            return parameters;
        }

        public void Validate()
        {
            RequestValidator.ValidateRequired("msguid", MsgUId); 
        } 

    }
}
